package com.zareal.ymcc.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 商品收藏
 * </p>
 *
 * @author Wilson
 * @since 2022-09-30
 */
@TableName("t_course_collect")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CourseCollect extends Model<CourseCollect> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("create_time")
    private Long createTime;
    /**
     * 登录用户
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 商品ID
     */
    @TableField("course_id")
    private Long courseId;
    @TableField("course_type_id")
    private Long courseTypeId;
    @TableField("phone")
    private String phone;
    @TableField("email")
    private String email;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
